import tornado.database

if __name__ == "__main__":
	db = tornado.database.Connection('localhost','mysql','root','admin1181')
	for rec in db.query("select * from help_category"):
		print rec.name
